#!/bin/bash                                                                 
cmake -D CMAKE_BUILD_TYPE=Release \                                         
      -D CMAKE_INSTALL_PREFIX=/home/lixia/opencv \                          
      -D BUILD_opencv_python2:BOOL=OFF \                                    
      -D BUILD_opencv_python3:BOOL=ON \                                     
      -D WITH_TBB:BOOL=ON \                                                 
      -D WITH_EIGEN:BOOL=ON \                                               
      -D OPENCV_EXTRA_MODULES_PATH:PATH=/home/lixia/Tools/opencv_contrib/modules \                                                                      
      -D PYTHON_DEFAULT_EXECUTABLE:FILEPATH=/home/lixia/anaconda3/bin/python \                                                                          
      -D PYTHON3_EXECUTABLE:FILEPATH=/home/lixia/anaconda3/bin/python \     
      -D PYTHON3_INCLUDE_DIR:PATH=/home/lixia/anaconda3/include/python3.6m \
      -D PYTHON3_LIBRARY:FILEPATH=/home/lixia/anaconda3/lib/libpython3.6m.so \                                                                          
      -D PYTHON3_LIBRARIES:PATH=/home/lixia/anaconda3/lib/python3.6 \       
      -D PYTHON3_NUMPY_INCLUDE_DIRS:PATH=/home/lixia/anaconda3/lib/python3.6/site-packages/numpy/core/include \                                         
      -D PYTHON3_PACKAGES_PATH:PATH=/home/lixia/anaconda3/lib/python3.6/site-packages ..                                                                
~                  